using System;

namespace EntityKit.Runtime
{
    [AttributeUsage(AttributeTargets.Method)]
    public class UIDoubleClickBindAttribute : Attribute
    {
        public string Path { get; }
        public float ClickInterval { get; set; }

        public UIDoubleClickBindAttribute(string path, float clickInterval = 0.3f)
        {
            Path = path;
            ClickInterval = clickInterval;
        }
    }
}